<include file="Public:js" /> 
<div class="main-wrap">

        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="#">首页</a><span class="crumb-step">&gt;</span><a class="crumb-name" href="#">管理</a><span class="crumb-step">&gt;</span><span>修改</span></div>
        </div>
        <div class="result-wrap">
            <div class="result-content">
                <form action="{:U('do_store_update')}" method="post" id="myform" name="myform" enctype="multipart/form-data">
                <input type="hidden" name="supplier_id" value="{$info.supplier_id}">
                    <table class="insert-tab" width="100%">
                        <tbody>
                        <!--<tr>
                            <th width="120"><i class="require-red">*</i>分类：</th>
                            <td>
                                <select name="colId" id="catid" class="required">
                                    <option value="">请选择</option>
                                    <option value="19">精品界面</option><option value="20">推荐界面</option>
                                </select>
                            </td>
                        </tr>-->
                            <tr>
                                <th><i class="require-red">*</i>用户名：</th>
                                <td>
                                    <input class="common-text required" id="supplier_user" name="supplier_user" size="50" value="{$info.supplier_user}" type="text">
                                </td>
                            </tr>
                            <tr>
                                <th><i class="require-red">*</i>用户密码：</th>
                                <td>
                                    <input class="common-text required" value="" id="supplier_pwd" name="supplier_pwd" size="50" value=""  type="text">
                                    <span>注：不修改则不用填写</span>
                                </td>
                            </tr>
                            
                            <tr>
                                <th><i class="require-red">*</i>公司名称：</th>
                                <td>
                                    <input class="common-text required" value="{$info.company_name}" id="company_name" name="company_name" size="50" value="" type="text">
                                </td>
                            </tr>
                            <tr>
                                <th><i class="require-red">*</i>所在地区：</th>
                                <td>
                                     <!-- 省份 -->
                        <select name="pro" id="pro">
                             <option>--请选择省份--</option>
                            <foreach name="region" item="v">
                             
                                <php>if($info['province']==$v['area_id']){</php>
                                    <option value="{$v.area_id}" selected="selected">{$v.area_name}</option>
                                <php>}else{</php>
                                    <option value="{$v.area_id}" >{$v.area_name}</option>
                                <php>}</php>
                            </foreach>
                        </select>
                        <!-- 城市 -->
                        <select name="city" id="city">

                            <option value="{$info.city}">{$info.cityn}</option>
                        </select>
                        <!-- 区县 -->
                        <select name="area" id="area">
                           <option value="{$info.district}">{$info.districtn}</option>
                        </select>
                                </td>
                            </tr>
                            <tr>
                                <th><i class="require-red">*</i>公司详细地址：</th>
                                <td>
                                    <input class="common-text required" id="address" name="address" size="50" value="{$info.address}" type="text">
                                </td>
                            </tr>
                            <tr>
                                <th><i class="require-red">*</i>公司电话：</th>
                                <td>
                                    <input class="common-text required" id="tel" name="tel" size="50" value="{$info.tel}" type="text">
                                </td>
                            </tr>
                            <tr>
                                <th><i class="require-red">*</i>电子邮件：</th>
                                <td>
                                    <input class="common-text required" id="email" name="email" size="50" value="{$info.email}" type="text">
                                </td>
                            </tr>
                            <tr>
                                <th><i class="require-red">*</i>公司规模：</th>
                                <td>
                                    <input class="common-text required" id="guimo" name="guimo" size="50" value="{$info.guimo}" type="text">
                                </td>
                            </tr>
                            <tr>
                                <th><i class="require-red">*</i>公司类型：</th>
                                <td>
                                    <input class="common-text required" id="company_type" name="company_type" size="50" value="{$info.company_type}" type="text">
                                </td>
                            </tr>
                            <tr>
                                <th><i class="require-red">*</i>联系人：</th>
                                <td>
                                    <input class="common-text required" id="contacts_name" name="contacts_name" size="50" value="{$info.contacts_name}" type="text">
                                </td>
                            </tr>
                            <tr>
                                <th><i class="require-red">*</i>联系人电话：</th>
                                <td>
                                    <input class="common-text required" id="contacts_phone" name="contacts_phone" size="50" value="{$info.contacts_phone}" type="text">
                                </td>
                            </tr>
                            <tr>
                                <th><i class="require-red">*</i>营业执照号：</th>
                                <td>
                                    <input class="common-text required" id="business_licence_number" name="business_licence_number" size="50" value="{$info.business_licence_number}" type="text">
                                </td>
                            </tr>
                           <tr>
                                <th><i class="require-red">*</i>营业执照号电子版：</th>
                                <td id="btn">
                                
                                    	<ul id="ul_pics" class="ul_pics clearfix"></ul>
    								<a href="" id='img_pic_h' target="_blank"><img id='img_pic_d' name='business_licence_img' src="{$info.business_licence_img}" class="WU_cgrw_sctp1" width="120" height="120" /></a>
                                    <input type="hidden" name="business_licence_img" value="{$info.business_licence_img}">
                                	<div class="WU_cgrw_sctp2Box " id="btn">上传图片</div>
                                    
                                </td>
                            </tr>
                            <tr>
                                <th><i class="require-red">*</i>法定经营范围：</th>
                                <td>
                                    
                                    <textarea name="business_sphere"  class="common-textarea" id="business_sphere" cols="30" style="width: 98%;" rows="10">{$info.business_sphere}</textarea>
                                </td>
                            </tr>
                            
                          
                            <tr>
                                <th><i class="require-red">*</i>身份证证明照片：</th>
                                <td id="btn2">
                                  	<ul id="ul_pics2" class="ul_pics clearfix"></ul>
                                    <a href="" id='img_pic_h2' target="_blank"><img id='img_pic_d2' name='idcard_front' src="{$info.idcard_front}" class="WU_cgrw_sctp1" width="120" height="120" /></a>
    								<input type="hidden" name="idcard_front" value="{$info.idcard_front}">
                                	<div class="WU_cgrw_sctp2Box "  >上传图片</div>
                                </td>
                            </tr>
                            <tr>
                                <th><i class="require-red">*</i>身份证反面照片：</th>
                                <td id="btn3">
                                
                                	<ul id="ul_pics3" class="ul_pics clearfix"></ul>
                                    <a href="" id='img_pic_h3' target="_blank"><img id='img_pic_d3' name='idcard_reverse' src="{$info.idcard_reverse}" class="WU_cgrw_sctp1" width="120" height="120" /></a>
    								<input type="hidden" name="idcard_reverse" value="{$info.idcard_reverse}">
                                	<div class="WU_cgrw_sctp2Box " >上传图片</div>
                                    
                                </td>
                            </tr>
                            <tr>
                                <th><i class="require-red">*</i>身份证号码：</th>
                                <td>
                                    <input class="common-text required" id="id_card_no" name="id_card_no" size="20" value="{$info.id_card_no}" type="text">
                                </td>
                            </tr>
                            
                            <tr>
                                <th><i class="require-red">*</i>审核状态：</th>
                                <td>
                                
                                <select name="status" size=1>
                                <option value="0" <?php if($info['status']=='0'){ ?> selected="selected" <?php } ?> >未审核</option>
                                <option value="1"  <?php if($info['status']=='1'){ ?> selected="selected" <?php } ?> >审核通过</option>
                                <option value="-1" <?php if($info['status']=='-1'){ ?> selected="selected" <?php } ?> >审核不通过</option>
                                </select>
                               
                                
                                  
                                </td>
                            </tr>
                            <tr>
                                <th><i class="require-red">*</i>是否登录用户中心：</th>
                                <td>
                                <select name="dl_status" size=1>
                                <option value="0" <?php if($info['dl_status']=='0'){ ?> selected="selected" <?php } ?>  >禁止登录</option>
                                <option value="1" <?php if($info['dl_status']=='1'){ ?> selected="selected" <?php } ?> >允许登录</option>
                               
                                </select>
                                   
                                </td>
                            </tr>
                           
                            
                            
                            
                            
                            
                            
                            
                          
                            <tr>
                                <th></th>
                                <td>
                                    <input class="btn btn-primary btn6 mr10" value="提交" type="submit">
                                    <input class="btn btn6" onclick="history.go(-1)" value="返回" type="button">
                                </td>
                            </tr>
                        </tbody></table>
                </form>
            </div>
        </div>

    </div>
    <script>
    $('#pro').change(function(){
        $.ajax({
            type:"post",
            url:"{:U('getArea')}",
            data:'pro_id='+$('#pro').val(),
            dataType:"json",
            success:function(data){
                $('#city').html(data);
            }
        });
    });

    $('#city').change(function(){
        $.ajax({
            type:"post",
            url:"{:U('getArea')}",
            data:'pro_id='+$('#city').val(),
            dataType:"json",
            success:function(data){
                $('#area').html(data);
            }
        });
    });

</script>
<script type="text/javascript" src="__PUBLIC__/plupload/plupload.full.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/btn.js"></script>